<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="custom-style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
	<div style="overflow: hidden;">
		<div style="height: 57px;min-width: 1039px;background-size: auto 100%;background:url('');">
			<img src="titleleft.png" style="float: left;"/>
			<img src="titleright.png" alt="" style="float: right;" />
		</div>
	</div>
<!-- 制作者 Doxygen 1.8.15 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>法律声明</span></a></li>
      <li><a href="_xE9_xA6_x96_xE9_xA1_xB5.html"><span>首页</span></a></li>
      <li><a href="_xE6_x9B_xB4_xE6_x96_xB0_xE8_xAE_xB0_xE5_xBD_x95.html"><span>更新记录</span></a></li>
      <li><a href="_xE7_x8E_xAF_xE5_xA2_x83_xE9_x85_x8D_xE7_xBD_xAE.html"><span>环境配置</span></a></li>
      <li><a href="_xE7_xBC_x96_xE7_xA8_x8B_xE5_xBC_x95_xE5_xAF_xBC.html"><span>编程引导</span></a></li>
      <li class="current"><a href="modules.html"><span>接口说明</span></a></li>
      <li><a href="annotated.html"><span>结构体定义</span></a></li>
      <li><a href="_xE7_x9B_xB8_xE6_x9C_xBA_xE5_x8F_x82_xE6_x95_xB0_xE8_x8A_x82_xE7_x82_xB9_xE8_xA1_xA8.html"><span>相机参数节点表</span></a></li>
      <li><a href="examples.html"><span>示例程序</span></a></li>
      <li><a href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html"><span>状态码</span></a></li>
      <li><a href="_xE5_xB8_xB8_xE8_xA7_x81_xE9_x97_xAE_xE9_xA2_x98.html"><span>常见问题</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">图像渲染</div>  </div>
</div><!--header-->
<div class="contents">

<p>包含显示一帧图像接口  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga5de8e4375875d610cdef1ba9330e7e07"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#ga5de8e4375875d610cdef1ba9330e7e07">MV_CC_DisplayOneFrame</a> (IN void *handle, IN <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o.html">MV_DISPLAY_FRAME_INFO</a> *pstDisplayInfo)</td></tr>
<tr class="memdesc:ga5de8e4375875d610cdef1ba9330e7e07"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示一帧图像  <a href="#ga5de8e4375875d610cdef1ba9330e7e07">更多...</a><br /></td></tr>
<tr class="separator:ga5de8e4375875d610cdef1ba9330e7e07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf9833e6083f440922602035b7b743f7"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#gabf9833e6083f440922602035b7b743f7">MV_CC_DisplayOneFrameEx</a> (IN void *handle, IN void *hWnd, IN <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o___e_x.html">MV_DISPLAY_FRAME_INFO_EX</a> *pstDisplayInfo)</td></tr>
<tr class="memdesc:gabf9833e6083f440922602035b7b743f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示一帧图像（扩展接口）  <a href="#gabf9833e6083f440922602035b7b743f7">更多...</a><br /></td></tr>
<tr class="separator:gabf9833e6083f440922602035b7b743f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>包含显示一帧图像接口 </p>
<h2 class="groupheader">函数说明</h2>
<a id="ga5de8e4375875d610cdef1ba9330e7e07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5de8e4375875d610cdef1ba9330e7e07">&#9670;&nbsp;</a></span>MV_CC_DisplayOneFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrame </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o.html">MV_DISPLAY_FRAME_INFO</a> *&#160;</td>
          <td class="paramname"><em>pstDisplayInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示一帧图像 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstDisplayInfo</td><td>[IN] 图像信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>渲染方式可选择GDI或D3D，默认选择为GDI模式。渲染引擎仅在客户端不连接相机的情况下可以进行设置。 <ul>
<li>
GDI模式对电脑的显卡性能没有要求，适用于所有电脑。 </li>
<li>
D3D模式适用于安装显卡驱动且显卡内存大于1GB的电脑，该模式下客户端预览的图像效果会优于GDI模式下的图像效果。 </li>
</ul>
</dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_display_8cpp-example.html#a27">Display.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="gabf9833e6083f440922602035b7b743f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabf9833e6083f440922602035b7b743f7">&#9670;&nbsp;</a></span>MV_CC_DisplayOneFrameEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrameEx </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o___e_x.html">MV_DISPLAY_FRAME_INFO_EX</a> *&#160;</td>
          <td class="paramname"><em>pstDisplayInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示一帧图像（扩展接口） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">hWnd</td><td>[IN] 窗口句柄 </td></tr>
    <tr><td class="paramname">pstDisplayInfo</td><td>[IN] 图像信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd><b>&#160;&bull;&#160;</b>渲染方式可选择GDI或D3D，默认选择为GDI模式。渲染引擎仅在客户端不连接相机的情况下可以进行设置。 <ul>
<li>
GDI模式对电脑的显卡性能没有要求，适用于所有电脑。 </li>
<li>
D3D模式适用于安装显卡驱动且显卡内存大于1GB的电脑，该模式下客户端预览的图像效果会优于GDI模式下的图像效果。 </li>
</ul>
<b>&#160;&bull;&#160;</b> <a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#gabf9833e6083f440922602035b7b743f7" title="显示一帧图像（扩展接口）">MV_CC_DisplayOneFrameEx()</a> 与 <a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#ga5de8e4375875d610cdef1ba9330e7e07" title="显示一帧图像">MV_CC_DisplayOneFrame()</a> 接口的差异如下： <ul>
<li>
<a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#gabf9833e6083f440922602035b7b743f7" title="显示一帧图像（扩展接口）">MV_CC_DisplayOneFrameEx()</a> 支持PixelType_Gvsp_RGB8_Packed，PixelType_Gvsp_BGR8_Packed，PixelType_Gvsp_Mono8三种像素格式的渲染宽高大小至int类型，其余像素格式渲染仅支持宽高至short。 </li>
<li>
<a class="el" href="group___xE5_x9B_xBE_xE5_x83_x8F_xE6_xB8_xB2_xE6_x9F_x93.html#ga5de8e4375875d610cdef1ba9330e7e07" title="显示一帧图像">MV_CC_DisplayOneFrame()</a> ：图像宽高数据类型仅支持至short。 </li>
<li>
区别可以从结构体 <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o.html" title="显示帧信息">MV_DISPLAY_FRAME_INFO</a> 和 <a class="el" href="struct_m_v___d_i_s_p_l_a_y___f_r_a_m_e___i_n_f_o___e_x.html" title="显示帧信息（适用于例如线阵相机等宽高大于65535的设备）">MV_DISPLAY_FRAME_INFO_EX</a> 看出，width和height的定义，一个是short，一个是int。 </li>
</ul>
</dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<div class="footer" style="text-align: right;">
	<hr/>
	<small></small>
</div>
<script>
	// 当前选中的菜单
	var currentMenuItem = document.querySelector('.tablist > li.current > a')
	if (currentMenuItem) { // 子菜单情况
	  window.parent.postMessage({
		navHref: currentMenuItem.href
	  }, '*')
	} else {
	  window.parent.postMessage({
		url: window.location.href
	  }, '*')
	}
  </script>
</body>
</html>